package com.bkhech.boot.sample.mvc.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 登录 Response vo
 *
 * @author guowm
 * @date 2023/2/1
 */
@ApiModel("登录 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthLoginRespVo implements Serializable {
    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编码", required = true, example = "1024")
    private Long userId;
    /**
     * 访问令牌
     */
    @ApiModelProperty(value = "访问令牌", required = true, example = "happy")
    private String accessToken;
    /**
     * 刷新令牌
     */
    @ApiModelProperty(value = "刷新令牌", required = true, example = "nice")
    private String refreshToken;
    /**
     * 过期时间
     */
    @ApiModelProperty(value = "过期时间", required = true)
    private LocalDateTime expiresTime;
}
